package com.wpre.mybatisdemo2.mapper;

import com.wpre.mybatisdemo2.model.ArticleInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LianBao
 * Date: 2024-11-13
 * Time: 13:48
 */
@Mapper
public interface ArticleInfoMapper {

    @Select("select * from article_info ta left join user_info tb on ta.id = tb.id where tb.id=#{id}")
    ArticleInfo selectArticleInfo(Integer id);

}
